# $Id: CMakeLists.txt 75 2008-01-13 12:41:52Z bo $
# CMakeLists for files in Media, add new resources here
#
# ml278
# Copyright (C) 2008 Bjørn Øivind Bjørnsen, Aleksander Gjermundsen, Knut Andre Tidemann, Thomas Hansen
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

set (MEDIA_INSTALL_PREFIX "Media" CACHE INTERNAL "Prefix where media to ${PROJECT_NAME} will be installed")

# These directories gets completely copied
set (OGRE_MATERIAL_FOLDER "materials" CACHE INTERNAL "Path to the material-folder")
set (OGRE_MODELS_FOLDER "models" CACHE INTERNAL "Path to the model-folder")
set (OGRE_PLANET_DATA_FOLDER "planetdata" CACHE INTERNAL "Path to the planetdata-folder")
set (OGRE_PACKS_FOLDER "packs" CACHE INTERNAL "Path to the packs-folder")
set (OGRE_FONTS_FOLDER "fonts" CACHE INTERNAL "Path to the fonts-folder")
set (OGRE_SKINS_FOLDER "skins" CACHE INTERNAL "Path to the skins-folder")

# Copy whole directories
INSTALL(DIRECTORY ${OGRE_MATERIAL_FOLDER} DESTINATION "${MEDIA_INSTALL_PREFIX}/"
	PATTERN ".svn" EXCLUDE
	PATTERN "CVS" EXCLUDE)
INSTALL(DIRECTORY ${OGRE_MODELS_FOLDER} DESTINATION "${MEDIA_INSTALL_PREFIX}/"
	PATTERN ".svn" EXCLUDE
	PATTERN "CVS" EXCLUDE)
INSTALL(DIRECTORY ${OGRE_PLANET_DATA_FOLDER} DESTINATION "${MEDIA_INSTALL_PREFIX}/"
	PATTERN ".svn" EXCLUDE
	PATTERN "CVS" EXCLUDE)
INSTALL(DIRECTORY ${OGRE_PACKS_FOLDER} DESTINATION "${MEDIA_INSTALL_PREFIX}/"
	PATTERN ".svn" EXCLUDE
	PATTERN "CVS" EXCLUDE)
INSTALL(DIRECTORY ${OGRE_FONTS_FOLDER} DESTINATION "${MEDIA_INSTALL_PREFIX}/"
	PATTERN ".svn" EXCLUDE
	PATTERN "CVS" EXCLUDE)
INSTALL(DIRECTORY ${OGRE_SKINS_FOLDER} DESTINATION "${MEDIA_INSTALL_PREFIX}/"
	PATTERN ".svn" EXCLUDE
	PATTERN "CVS" EXCLUDE)
